Skip to content

Move codecov.yml into .github directory and increase coverage target to 90 percent#998

Merged
weiji14 merged 2 commits intomasterfrom
move-codecov-yml
Mar 4, 2021
Merged

Move codecov.yml into .github directory and increase coverage target to 90 percent#998
weiji14 merged 2 commits intomasterfrom
move-codecov-yml

Conversation

@weiji14
Copy link
Member

@weiji14 weiji14 commented Mar 4, 2021

Description of proposed changes

One less configuration file to see in the top level directory.
See https://docs.codecov.io/docs/codecov-yaml#can-i-name-the-file-codecovyml

Helps with #904

Reminders

  • Run make format and make check to make sure the code follows the style guide.
  • Add tests for new features or tests that would have caught the bug that you're fixing.
  • Add new public functions/methods/classes to doc/api/index.rst.
  • Write detailed docstrings for all functions/methods.
  • If adding new functionality, add an example to docstrings or tutorials.

Slash Commands

You can write slash commands (/command) in the first line of a comment to perform
specific operations. Supported slash commands are:

  • /format: automatically format and lint the code
  • /test-gmt-dev: run full tests on the latest GMT development version

@weiji14 weiji14 added maintenance Boring but important stuff for the core devs skip-changelog Skip adding Pull Request to changelog labels Mar 4, 2021
Copy link
Member

@seisman seisman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@weiji14
Copy link
Member Author

weiji14 commented Mar 4, 2021

Just wondering, do we want to increase the target coverage from 80% to 90% (or higher)? We've been tracking at above 95% for the past six months it seems.

7iwb5xau

coverage:
status:
patch:
default:
target: '80'

@seisman
Copy link
Member

seisman commented Mar 4, 2021

do we want to increase the target coverage from 80% to 90% (or higher)? We've been tracking at above 95% for the past six months it seems.

I'm fine with 90% or 95% coverage.

@weiji14 weiji14 force-pushed the move-codecov-yml branch from eabdd32 to 870704e Compare March 4, 2021 01:28
@weiji14
Copy link
Member Author

weiji14 commented Mar 4, 2021

Ok, increased to 90%. Merging.

@weiji14 weiji14 marked this pull request as ready for review March 4, 2021 01:29
@weiji14 weiji14 changed the title Move codecov configuration file into .github directory Move codecov.yml into .github directory and increase coverage target to 90 percent Mar 4, 2021
@weiji14 weiji14 merged commit aeb4d4a into master Mar 4, 2021
@weiji14 weiji14 deleted the move-codecov-yml branch March 4, 2021 01:32
@seisman
Copy link
Member

seisman commented Mar 4, 2021

image

I think we misunderstand what 90% means.

We set the target of patches to 90%. I think it means at least 90% of the changed lines should be covered.

It's different than the project coverage. If I understand it correctly, the project coverage only pass if the current coverage is no smaller than the previous coverage.

@weiji14
Copy link
Member Author

weiji14 commented Mar 4, 2021

image

I think we misunderstand what 90% means.

We set the target of patches to 90%. I think it means at least 90% of the changed lines should be covered.

It's different than the project coverage. If I understand it correctly, the project coverage only pass if the current coverage is no smaller than the previous coverage.

Ah, so we need to set the project coverage as well then perhaps, in addition to the patch coverage?

@seisman
Copy link
Member

seisman commented Mar 4, 2021

Maybe, but I didn't read the codecov documentation carefully.

sixy6e pushed a commit to sixy6e/pygmt that referenced this pull request Dec 21, 2022
…to 90 percent (GenericMappingTools#998)

* Move codecov configuration file into .github directory

One less configuration file to see in the top level directory.
See https://docs.codecov.io/docs/codecov-yaml#can-i-name-the-file-codecovyml

* Increase code coverage target to 90%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Boring but important stuff for the core devs skip-changelog Skip adding Pull Request to changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants